<script>
import Main from "@/components/pages/Main.vue";

export default {
  name: "Home",
  components: {Main},
  data() {
    return {
      isRegister: true
    }
  },
  methods: {
    register() {
      this.isRegister = true
      this.$router.push('/home/register')
    },
    search() {
      this.isRegister = false
      this.$router.push('/home/search')
    }
  }
}
</script>

<template>
  <el-header style="text-align: right" class="header-right">
    <el-button :disabled="isRegister" @click="register">登记</el-button>
    <el-button :disabled="!isRegister" @click="search">查询</el-button>
  </el-header>
  <el-main>
    <Main />
  </el-main>


</template>

<style scoped>

</style>